package com.heima.bank_system;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<BankAccount> list = new ArrayList<>();
        BankSystem bs = new BankSystem(list);
        BankAccount b1 = new Bank("00101",2345678);
        BankAccount b2 = new Bank("00102",2345678);
        BankAccount b3 = new Bank("00103",2345678);
        BankAccount b4 = new Bank("00104",2345678);
        bs.addAccount(b1);
        bs.addAccount(b2);
        bs.addAccount(b3);
        bs.addAccount(b4);
        bs.printAccountDetails();
    }
}
